import axios from '@/http'

export default {
    getData (id){
        return axios.get("categories",id)
    },

    addList (id){
        return axios.post("categories",id)
    },

    addCate (id){
        return axios.get("categories",id)
    },
    
    remove (id,cid){
        return axios.delete(`categories/${id}` ,cid)
    },

    updataCate (id,cid){
        return axios.put(`categories/${id}`,cid)
    },
}